//
//  BZThreadGroup.h
//  MZBasic
//
//  Created by Sings on 2023/7/6.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class BZThreadQueue;

typedef void(^BZThreadGroupFinishedBlock)(void);

@interface BZThreadGroup : NSObject

@property (nonatomic, copy) BZThreadGroupFinishedBlock finished;

- (instancetype) initWithiConcurrency:(NSUInteger) iConcurrency;

- (void) addThreadQueue:(BZThreadQueue *) queue;

- (void) stopAll;

@end

NS_ASSUME_NONNULL_END
